removed freq_obj and changed api for freq