refactor: simplify method