adding final output