changed nfds variable in select