made wavegen time based