avoid intermediate zipped array