method moved to class