Made additions to valuestorage
// denotes the changes I made
resemble more of linked list