fixed using non-static method in a static way