parser optimization