added Ray template