added wav writer