updating occurence and compressed