update to the way dict is accessed as a return value
updates to reflect recent changes