working on ray based translation