minor changes in ref