middle state of parsing function