code prepped for drawing trains