fixed deprecated function
upgrade to library 2.0.49