gem underscore and refactor by simple helper