remove redundant loops