only encode 10 values for each feature