added featureExtraction and outputs