first version of tail