replace each with for