remove unnecessary iteration