correct some errors, complete Print()