update for depricated warning