fixed deprecated method usage