change instance methods to class methods