simplified parser code structure