creating the condition