add glob_freq as object attribute