better field encoding