remove unncessesary and unused loop labels