change missigSegments to a static variable