return request object when executing function