working example of map but static