tax in loops