small modification on Zigzag conversion
10/22/2014