sync with ref