precompute in between features