create a function to do all the GET requests