avoiding deprecation warning