made stripping conditions more concise