grid to master