a mask on a grid