add cases preprocess