minor nit: s/map/dict/