"simplify" code