solved bug in iter