improved ruby dic