implement the rename method