avoid deprecation warning