reduce the exit point & fix edge cycle