pack layout working