fixed deprecated method