simplify code with underscore