minor code formatting fix
unify API for nativeIterator