simplify assignments, conditionals, chained comparisons