made the result array a const