IF

added IF statements