set frequencies correctly