add BRfunc variable for xpt