helps to update both references