if condition correction