update dependent code