before write reference string, convert it to uppercase
write "ref:" before reference string
print size for groups