add new curves to the loop (with some cleanup from me)