BF: replace range with trange