simplify 2.7 solution