lengths now adapted