working on frequency setting