do not write wave if not needed