updated api endpoing to use real API