get rid of deprecated method call