pack logic updated