renamed generator to m