hw6 was modified