When I run the code below I get all the data at once but I want the data to come as a separate variable.