changing output to the right formatting