make badfield mask - sum matrix