moved all requests to one function