change depricated function.