twitter implementation remove deprecation warning