modified hw1 read