packer code cleaning