compile grid