write out correct dictionary