refactor to setupShowCurvature