small refactor CreateCircuite