small change in storage retrieval algo