make attribute map more efficient