refactor some code to avoid overloading the name 'usesLR' in