formatting corrected of output