reformatting/cleaning gridy script out a little.