lag masking on leafs first iteration