add condition for price table