working on wav save funcitonality