fixed errors in dictionary_comparison