main structure of grid extension