trimming unneeded features and creating csv handler