test iteration changed to more accurate method