add function for uncompress