change deprecated functions