get rid of deprecation warning