update and expansion of csv