zigzag conversion repeated