some generator helpers