clean up tails