parse grid