response code check was added