Update deprecated method

plz!