fit rays model