handles csv input better