refactor de domain