store rays to result