adding a limit to the dictionary