better precomputing for next subject