only need to fix the before pointer to finish