switched the api from query to parse