removing deprication warnings.  fixes #8921