update basic IO in pascal