added deprecation check