code for simple map interfaces