fix outdated code