commented chkSel function