mask based init