making generate work