Arachnids have two kinds of eyes: the lateral and median ocelli. The lateral ocelli evolved from compound eyes and may have a tapetum, which enhances the ability to collect light. With the exception of scorpions, which can have up to five pairs of lateral ocelli, there are never more than three pairs present. The median ocelli develop from a transverse fold of the ectoderm. The ancestors of modern arachnids probably had both types, but modern ones often lack one type or the other. The cornea of the eye also acts as a lens, and is continuous with the cuticle of the body. Beneath this is a transparent vitreous body, and then the retina and, if present, the tapetum. In most arachnids, the retina probably does not have enough light sensitive cells to allow the eyes to form a proper image.