moved iteration and logging into one manager object