multiple values and encode decode