init mask to zero