deleted zig-zag code