adding some grid wizardry.