change model to domain