parametrize iterations count, slightly change output format