recall the previous change

use imap but not omap, because map could be implemented as ordered map
as well as hash map
trivial change, no behavior changed