save word
fix wrong definition and ref get function