change scope to class method