Excitonic effects in the optical properties