simplify solution