worked on functionality, it can now pull data from api