clone code by replacing similar key words