better map impl.