edits to checkOccurrences doc