case recognition partial fix