occurence and hash done