no need to store mask and events size, just use the template values