script now creates a .csv