change io.write to print