got rid of deprecated method