working with full functionality, outputs csv