praveen|adding safe get of key from dictionary