preparing data for mallet