prototype of map