KS shaping