add length definition