streamlined fillDicts function to take only 2 arguments