static method not declared