fix the warning regarding top level access of class var