initial attempt for leaning curves