set right meta type for encoding