return logic simplification