change deprecated methods from List