remove call to deprecated method