Change name logic