create request function