read data into dictionary