handle deprecated method