working on Vertical box layout algo