revmoving multiples rows with function was failing, when detected indices to be removed are stored increasingly.
reversing the list of index solved it