testing swapAPPLE
changed wurtzbuffer to be circular to try and avoid mavericks crashes