trying function to clear a line then reprint.