make a dict structure with get() and insert()