reorganize circuit