remove unnecessary loops