add formatting functionality