addressed the problems with my hw4