passing all conditions