simplify range check on width
trivial whitespace fix