remove length references