simplify formula and add comment