precalculates