user dict logic