add condition on params