changed from a post request to a get request