rename length -> len