use expression instead of conditional