initialize mask with ones()