fixing the case problem