added state to csv