updating to object.iteration syntax