Fixed hCaseA and hCaseB