fix oc: rewrite freq_table functions in pvs_table