refactor: reduce variable