fixed final output