build with checking for Selections table