if instead of case