update terminal in map