add lengths.c