map prototype works