addressed problems with my hw4