iter function - advance