fixed depricated call