hw2 update again 2 with less iterations