hw2 seemingly working