-slight change to parser to update invalid