took out hard coded endpoint