retain ~ and % modes