On the optical properties of some layer compounds