adding restresponse check