review code and fix the grid bug