method of producing the mask