change reader to parser