use convention mapping for encoding