add condition functionality