small nits and write to csv