renaming diff to length