regenerating stubs