simplify code for legibility