added dictionary functionality