made dictionary index work