hw part1 modified