remove edges from main loop