fix mask interface