precomputing contours for next subject