change the request function