correct tail length