make sure the last word gets printed