refactor: use class variable