added checks for files without gc's
now does multiple single occurrences correcctly