populdate data with lengths