fix for passing in frequency