refactor: refine output