update outdated code