fixed xGrid yGrid.  Should really refactor that at some point