underscore added
replaced foreach loop with underscore methods