simplify cst at some points