LinearMap => HashMap
remove unnecessarry mutability