refacto and improvement of define w.e. CSV #www