modify ng-repeat to ng-loop