integrated first halfway of parser