deprecated method bug