change variable name
consider reference set on peer when encode fields