removed 0s from the mask