fixes deprication warning for 1.7