fix problem with HW7 solutions