added dataPrepare after learning few tricks with tapply and split