small optimization for parsing event