fixed depricated method