renamed klas to mask