On the optical model for nuclear reactions