fixing dicitonary accessing