add a way to queries values, store in a dict and recall