fixed critical bug, added selec