modified the curve to be more of an adaptor
minor changes to code