try to avoid a willing to deprecated method