there's no need to manually build the array
avoid null reference