added curve utiltiies