now receiving data from query -- still needs lots of work