spec for deprecation