moving service index from scope to elem