take even more things out of loops