lint deprecated methods warnings removed