Solution 166 simplification