extracting features to file