fix three issues:
1. x-axis of the edge when wrapping y;
2. mirror y by mean;
3. find the resessive edge when wrapping y