changed methods to class methods