change name logic