revert to getting expected result from array