modified to encode MFCC feature