fixing edges