performance update in update map method