attempt to fix deprecation warning.