added length' and sum'