add CodeMap using HashMap better than ArrayList