cleaning up foundation layout