link indexes bugs
selection plan: building and executing