Why did you use local? Use map directly!