zigzag conversion 2nd try