fixed package for encoding