get rid of a deprecated method use