added error handling for no response