changed static to class method