base structure coding