add field encoding