trying to fix hang on no freq algo