updating hw6.5