update zigzag-conversion for second trial