minor changes to formatting script