corrected references to `unit` (should be `length`)