update some referencies