fixing casing problems