fixed dictionary function