trail head and tail length control