remade selecting line