bipartite code extract