minor changes to final output pattern