including cclear in the if statement