correct the condition