fixed the head=tail problem proper