some small updates to curves.cpp