function to read wav files
merge