update for deprecated method