fix depricated param