trying to fix regen stuff