writing feature to csv