unbalanced map implementation attempt (not finished yet)