debugging the put of segment and retrieval