trying to silence deprication warning