change methods to class methods