adding the change to reverse the wav file