some modifications nlj + selection