format fields in setRefClass