updating lines