get rid of deprectaion warnings