add mean curve