entering endless loop
Added transform_reduce