use Compat to remove syntax deprecations