extract and rename method