updated deprecated method call.