added an array map so we can make the original data smaller