changed to class method