Why insects are attracted to light? ?

is there any scientific explanation why insects always gather at the lamp post or any source of light at night...they keep on flying towards it even though they end up hitting the bulb again and again ... it is just weird.
7 answers 7