remove unnecessary error check
bug: initialize map