adding an error check for when I run out of requests