change algorithm is_deprecation