fixed csv processing