modification 'type({})' to dict