if statement in double