add util for transform domain class fields