added length estimation