finalizing, need output