updated deprecated method during upgrade