remove drepecation warning