index building prototype finish