hw2 seems to work