tweak types for list encoding