remove depreciated methods used.