added ~ option