updated with csv workings