initialize next pointer