update a line