Replaced for each with underscore each method