set min and max freq