changed to output {<TYPE>: <LIST OF TYPE>}