change the publish method to make the packing faster