almost have iteration working