cleaner logic expression