removed the deprecated method