remove console.log and change to angular.forEach