change the condition of error