fixed correct output