map finally works