function  in class, the var must be set static