updated gen and res