correcting the dict get method