corrections to parser