initialize terminate to be zero