freq optimization