turned it into a class method