basic grid sequencing coded but not tested