add if condition