working on checkallconditions