get rid of deprecation warnings