dictionary.get working perfectly