iterator times function