removed duplicated afterDigest