changed parser to work with d3