using plyr for get transformation of the data