deployment: loop for all possible lengths