implement map element packer