don't use deprecated method in example