add condition statement