fixing unmask method