changes to ray