created sample iterator