Change deprecated method