generator updated and ian gent explantioned added