melting and reshaping into tidy data set