fixed compile error; added num-filter option