prints obj val at each iteration