adding response status check