use exception instead of null pointer while key not found