simplify frequency checker