simplify code example