remove calls to depecrated methods