removing deprecated method