split masks into _MASK and _LSH