remove hack2 from xreplace