zig zag fix for large quantities of data