convert pure list-map items to loops to prevent wasteful list generation - issue #179