replaced deprecated method
replaced deprecated method