style: make use of of_length in internal interface