remove \beforeMod\ before capture