finishes rebase