add uncompress function