modify case code