new csv funciont and constants added