debugged serious bugged in creating Dictionary