recompute connections each frame