length
optimize length, make it robust for big lists