fixed an issue with varying frequency