added lc zigzag conversion