update hash when start or end changes