new csv parse function + edited distance materials