comment loop function causing slow process issues with grouped rows.