fixed error with using a static method