tiny formatting tweaks to functions