replaced depricated class