removes depricated function