fixing the console to have the correct output