Shaping package layout