inhibit warning about deprecated method