in the work
refactored replacement domain