Update segment_store.c

further planning necessary..