small simplification to dict formatting