selecting boxes based on sum of sat length