change domain function has been implemented