builds data of a certain length