improved ruby dict