remove functions that needed struct grid