factor out original results array assignment