updates to the request function