use iteratoration by reference loop