remove deprycation errors.