cleans up code to make get requests