check all condition