refactor and bug fix frequency service and bandwith service