simplified pack code