making GRID relational