map example style refactor