improving cst solving