fixing edges list script