put length to key