change some instance methods to class methods