added draft function to format grid, still needs work. delete if crap.