use zip instead of manual indexing