updated outdated function call