added dictionary to call when calling function in main