fixed hw4 p1 result