Before revision: Sensory synapses occur in the dorsal spinal cord (above in this image), and motor nerves leave through the ventral (as well as lateral ) horns of the spinal cord as seen below in the image.
After revision: Sensory synapses occur in the dorsal spinal cord (above in this image), and motor nerves leave through the ventral and lateral horns of the spinal cord as seen below in the image.