Revert "avoid copy from mutable"

This reverts commit ed5a9425bc19c06cbd27041d52a2e30f17025468.
make an immtable backed map