add formatting attributes