attempt to correct CO-smart-CAST algo

attempt to correct CO-smart-CAST algo