implemented tails.