apply with masks.