array map to extract values