speedup for parsing