if statement implemented