learning how rebase works