finalizing grid