grid, remove unused codes