removed depricated function