removing unneccessary loops in initLB.c