learning the curves