last updated.. stuck with read issue in while loop