added grid loop...doesn't work