true max encoding in feature extraction