array tweak for mask