address deprecation warning