prep for generator