add pack method