update code and over-write depricated function