removing deprication warning