Add domain adaptive function
domain adaptive function