An easy way to handle masks