moved routine of check response