[fix] don't use a deprecated method