homework updates: bug fixes