deciphering the mask traces