added register mask