changed get request to a post request