get rid of the deprecation warnings