removed extra calls to csv