build dataset and beginning of build pgm