add percentage formatting as a function