checking the condition