iterable functions; bug fixes