code quality (#253) - chained comparisons