move name logic