sped up the fillDict funtions with try statements instead of if statements