trying to fix selection errors
end of matches selectable
logging count