added class method as well.