removing scope.index