change to "filename" to remove var name conflict