some cleaning
add mirror_edges