check response prevent error