updated sine wave rendering