simplify code with J7