remove last for each