updating referencies