fixing range.collapsed mistakenly taken for a function