fix encode value
fix distribution