use reference and remove the parsed data