updated depricated method