construction of data for classifier