fix ray casting function keyword