hw1 modified