The light was a complicated matter before electricity lamp was founded because the wind blowing were easily to extinguish the flame. In the first time, the train went on a trip during the day since the railway had considered fully dangerous in the night. In 1831, Horatio Allen founded the track illuminator which actually did not cast much light, however it was the remarkable invention. In the following years, oil was used to generate the train through a curved reflector , while Schenectady and Troy Railroad used a whale oil lamp where it illuminated the railway approximately 100 feet . During 1849, The calcium lamp cast the light up to 1000 feet was created, but just two companies used it. Eventually, the train utilized acetyline to substitute oil lamp because it could ride out the wind. In 1851, the first electric headlamp was discovered , however it still had two downsides namely it need its own generator and the parts were fragile during the train travel. In the United States, Goerge C.Payle invented headlamp which was more effecient electricity in 1897. Finally, the invention of electric headlamp facilitated train to travel 24 hours and all climate conditions.