add if and for