update to Ray