resolve numpy deprecation warning