adding statements to if