update deprecated method signature

Fix warnings by updating to the non deprecated method name