working fsk simulation with resampling