moves length data to yml