renaming packages
new code for compact encode