constructor for request