changed ray type enum type