small addition to grid maskcapture